package com.longbo.leaf.portal.mapper;

import com.longbo.leaf.portal.model.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * <p>
 * 用户--角色表 Mapper 接口
 * </p>
 *
 * @author longbo
 * @since 2021-02-01
 */
@Repository
public interface UserRoleMapper extends BaseMapper<UserRole> {
  int deleteByUserId(String userId);
  int updateByUserIdAndRoleIdInt(Long userId,Long roleId);
}
